package unit04.Model;


public class PC {
    CPU cpu;
    HardDisk HD;

    public void setCPU(CPU cpu) {
        this.cpu = cpu;
    }

    public void setHardDisk(HardDisk HD) {
        this.HD = HD;
    }

    public void show() {
        System.out.println("CPUS Speed:" + cpu.getSpeed());
        System.out.println("Disk:" + HD.getAmount());
    }
}

